package designPattern.mvc
{
	import flash.events.Event;
	import flash.events.EventDispatcher;

	public class Model extends EventDispatcher implements IModel
	{
		private var key:uint = 0;
		public function Model()
		{
		}
		
		public function setKey(key:uint):void
		{
			this.key = key;
			this.dispatchEvent(new Event(Event.CHANGE));
		}
		
		public function getKey():uint
		{
			return this.key;
		}
	}
}